//
//  YD_getCurrentResponseVCTool.m
//  SpeedDating
//
//  Created by isu on 16/12/29.
//  Copyright © 2016年 isu. All rights reserved.
//

#import "YD_getCurrentResponseVCTool.h"

@implementation YD_getCurrentResponseVCTool
+(UIViewController*)getCurrentResponseVC :(UIView*)baseView {
    for (UIView* next = [baseView superview]; next; next =next.superview) {
        UIResponder* nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]]) {
            return (UIViewController*)nextResponder;
        }
    }
    return nil;
}
@end
